package com.gisquest.cloud.common.enums;

/**
 * @Author guowei
 * @Date 2020/6/17 10:17
 * @Description:异常信息的抛出
 **/
public enum BizEnum {

  SYSTEM_UNKNOW_ERROR(Integer.valueOf(500), "系统异常，请联系管理员"),
  COMMON_UNKNOW_ERROR(Integer.valueOf(501), "请确认您的请求参数无误后重试");


  private Integer code;
  private String message;

  BizEnum(Integer code, String message) {
    this.code = code;
    this.message = message;
  }


  public String getAppendMessage() {
    return this.code + ":" + this.message;
  }

  public String getMessage(){
    return this.message;
  }

  public Integer getCode() {
    return this.code;
  }
}
